import request from '@/config/axios'
/**
 * 创建护理项目
 */
export const create = (data) => {
  return request.post({ url: '/nurse/nurse-item/create', data })
}

/**
 * 分页查询护理项目
 */
export const query = (params) => {
  return request.get({ url: '/nurse/nurse-item/query', params })
}

/**
 * 修改护理项目
 */
export const update = (data) => {
  return request.put({ url: '/nurse/nurse-item/update', data })
}

/**
 * 删除护理项目
 */
export const deleted = (id) => {
  return request.delete({ url: '/nurse/nurse-item/deleted?id=' + id })
}

/**
 * 获取单个护理项目
 */
export const get = (id) => {
  return request.get({ url: '/nurse/nurse-item/get?id=' + id })
}

/**
 * 查询护理项目
 */
export const listQuery = () => {
  return request.get({ url: '/nurse/nurse-item/list-query' })
}
